package com.zjs.test;

import com.caucho.hessian.client.HessianProxyFactory;

import java.net.MalformedURLException;
import java.util.List;

/**
 * @类名： PersonDemo
 * @说明： TODO
 * @作者：SS 苏帅出品
 * @时间：2019/12/10 17:13
 * @版本：1.0
 */
public class PersonDemo {
    public static void main(String[] args) throws MalformedURLException {

        HessianProxyFactory factory=new HessianProxyFactory();

        PersonServiceI o= (PersonServiceI) factory.create(PersonServiceI.class, "http://localhost:8080/hessian");

        List<Person> all = o.findAll();


        System.out.println(all);
    }
}
